/*
 * Write a C++ program to check whether given number
 * is postive, negative or zero
 */

# include <iostream>
using namespace std;

class PositiveNegative {
  float a;
public:
  void getAndDisplay();
};

void PositiveNegative::getAndDisplay() {
  cout << "Enter the number: ";
  cin >> a;
  cout << "The number is ";
  cout << ((a == 0) ? "zero." : ((a > 0) ? "positive" : "negative")) << endl;
}

int main() {
  PositiveNegative pn;
  pn.getAndDisplay();
  return 0;
}
